package com.example.demo.mybatis.service.impl;

import com.example.demo.mybatis.entity.Person;
import com.example.demo.mybatis.mapper.PersonMapper;
import com.example.demo.mybatis.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("personService")
public class PersonServiceimpl implements PersonService {

    @Autowired
    private PersonMapper personMapper;

    @Override
    public List<Person> findAll() {
        return personMapper.findAll();
    }
}